package com.example.androidlearing2423.kotlin

fun main(){
    print("Please input telephone number:")
    val telephone = readln().replace("","").replace("","")
     if(telephone.length  != 11){
    print("Telephone is Valid")
   } else{
        val  q3 = telephone.substring(0,3)
        val  h4 = telephone.substring(7,11)
        println("$q3****$h4")
    }
}